package net.model.iterator;

import java.util.Iterator;

public class Assist {

	private DinnerMenu dinnerMenu = null;
	
	public Assist(DinnerMenu dinnerMenu) {
		this.dinnerMenu = dinnerMenu;
	}
	
	public void printMenu() {
		
		Iterator itr = this.dinnerMenu.createIterator();
		while(itr.hasNext()) {
			MenuItem item = (MenuItem)itr.next();
			System.out.println(item.toString());
		}
	}
	
	public static void main(String[] args) {
		
		new Assist(new DinnerMenu()).printMenu();
	} 
}
